<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
    <!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'"> -->
    <!-- //electron 提供的配置 成功运行 -->
    <!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'"> -->
    <!-- //electron 提供的配置2 引入js后也会报错 -->
    <!-- <meta http-equiv="Content-Security-Policy" content="default-src none"> -->
    <!-- //视频教程里的配置 会报错 -->
    <!-- <meta http-equiv="Content-Security-Policy" content="default-src 'self';style-src 'self' 'unsafe-inline';img-src self data:;"> -->
    <!-- //我自己写的组合的配置更全 加了一个script的限制,有事儿后期再改， 刚试了会报错，可能哪里没写对，先记录在这里 -->
    <meta http-equiv="Content-Security-Policy"
        content="default-src 'self'; script-src 'self';style-src 'self' 'unsafe-inline';img-src self data:;">
    <title>Hello World!</title>
    <!-- <link rel="stylesheet" href="./style.css"> -->
</head>

<body>
    <h1>Hello World!</h1>
    <h1>欢迎学习Electron开发！！！</h1>
    <button id="btn1">点我查看node版本</button>
    <hr />
    <input type="text" id="inp" />
    <button id="btn2">向D盘写入hello.txt</button>
    <hr>
    <button id="btn3">读取hello.txt的内容</button>
</body>
<script type="text/javascript" src="./render.js"></script>

</html>